error-code 2.3.1

Alternative Error for Rust
Documentation

error-code

Crates.io Documentation Build

Alternative Error for Rust.

It's goal is to be able to provide simplified Error which would work in no_std environment

Features

  • std - enables std::error::Error implementation

Categories

Library introduces the concept of categories, similar to that of C++ std::error_category. Each category can be used to describe set of integral error codes.

Following implementations are builtin:

  • Posix - POSIX category. To access integer constants use libc
  • System - System category. To access integer constants use libc on unix, and winapi on Windows
  • Plain - Plain errors without any category.